package Zhouliu;
public class SalariedEmployee extends Employee{
    private double Money;
    public SalariedEmployee(){
    }
    public SalariedEmployee(double money) {
        super("小明",12);
        Money = money;
    }
    @Override
    public double getSalary(int month) {
        double price = 0;
        if (getBirMonth() == month){
            price+=100;
            System.out.println("生日红包:"+100+"元!");
        }
        price += Money;
        System.out.println(getName()+"薪资:"+price);
        return price;
    }
    @Override
    public void print() {
        super.print();
    }
    public double getMoney() {
        return Money;
    }
    public void setMoney(double money) {
        Money = money;
    }
}
